package parkshop.pmcourse.service;

import java.util.List;

import parkshop.pmcourse.domain.Customer;
import parkshop.pmcourse.domain.MallAdministrator;
import parkshop.pmcourse.domain.Shop;
import parkshop.pmcourse.domain.ShopOwner;
import parkshop.pmcourse.dto.User;

public interface MallAdministratorService {

	MallAdministrator selectByName(String name);
	User signin(String name,String password);
	boolean signup(User user);
	List<Shop> getOpenShopList(int pageNumber);
	int getSumOfOpenShopList();
	boolean allowNewShop(int id);
	boolean rejectNewShop(int id);
	boolean updatePersonInfo(User user);
	
	List<ShopOwner> getShopOwnerList(int pageNumber);
	int getSumPagesOfShopOwnerList();
	boolean blacklistShopOwner(int shopOwnerId);
	boolean normalizeShopOwner(int shopOwnerId);
	boolean deleteShopOwner(int shopOwnerId);
	
	List<Customer> getCustomerList(int pageNumber);
	int getSumPagesOfCustomerList();
	boolean blacklistCustomer(int customerId);
	boolean deleteCustomer(int customerId);
	
	List<Shop> getShopList(int pageNumber);
	int getSumPagesOfShopList();
	boolean blacklistShop(int shopId);
	boolean normalizeShop(int shopId);
	boolean deleteShop(int shopId);
	boolean activeUser(String code);
	boolean normalizeCustomer(int customerId);
	
	
	
}
